<%@ taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt" %>
<jsp:useBean id="itemDate" class="java.util.Date" />
<jsp:setProperty name="itemDate" property="time" value="${war.timeStamp}" />
<h1>${f:replace(war.fileName, "_", " ")}</h1>
<span class="entry-version"><fmt:formatDate pattern="dd. MM. yyyy hh:mm:ss" value="${itemDate}" dateStyle="long" timeZone="GMT+2"/></span>
<br>
<span class="entry-remove"><a href="${pageContext.request.contextPath}/war/remove/${war.fileName}/${war.timeStamp}" onclick="return confirm('Are you sure?')">Delete</a></span>
<span class="entry-download"><a href="${pageContext.request.contextPath}/war/download/${war.fileName}/${war.timeStamp}">Download .war</a></span>
<br>
<div>
    <div class="column">
        <ul class="list-group">
            <li class="list-group-item active">Listeners<span class="badge">${f:length(war.listeners)}</span></li>
                    <c:forEach items="${war.listeners}" var="listener">
            <li class="list-group-item">${listener}</li>
                    </c:forEach>
        </ul>
    </div>
    <div class="column">
        <ul class="list-group">
            <li class="list-group-item active">Filters<span class="badge">${f:length(war.filters)}</span></li>
                    <c:forEach items="${war.filters}" var="filter">
            <li class="list-group-item">${filter}</li>
                    </c:forEach>
        </ul>
    </div>
</div>
<br>
<pre class="brush: xml">
${war.webxml}
</pre>

